package com.entity.xsxt;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class ThisRace {
    /**
     * 
     */
    private Integer id;

    /**
     * 年份
     */
    private String year;

    /**
     * 比赛编号
     */
    private String raceCode;

    /**
     * 赛事标题
     */
    private String title;

    /**
     * 赛事内容
     */
    private String raceContent;

    /**
     * 赛事开始时间
     */
    private Date beginTime;

    /**
     * 赛事结束时间
     */
    private Date endTime;

    /**
     * 附件路径
     */
    private String filePath;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year == null ? null : year.trim();
    }

    public String getRaceCode() {
        return raceCode;
    }

    public void setRaceCode(String raceCode) {
        this.raceCode = raceCode == null ? null : raceCode.trim();
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getRaceContent() {
        return raceContent;
    }

    public void setRaceContent(String raceContent) {
        this.raceContent = raceContent == null ? null : raceContent.trim();
    }

    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    public Date getBeginTime() {
        return beginTime;
    }

    @DateTimeFormat(pattern="yyyy-MM-dd")
    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    public Date getEndTime() {
        return endTime;
    }

    @DateTimeFormat(pattern="yyyy-MM-dd")
    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath == null ? null : filePath.trim();
    }
}